<?php
namespace Opportunity\Form;
 
use Zend\Captcha; 
use Zend\Form\Element; 
use Zend\Form\Form; 
use Zend\InputFilter\Factory as InputFactory; 
use Zend\InputFilter\InputFilter; 
use Zend\InputFilter\InputFilterAwareInterface; 
use Zend\InputFilter\InputFilterInterface;

class DetailForm extends Form //implements InputFilterAwareInterface 

{ 
    public function __construct($name = null) 
    { 
        parent::__construct('opportunity'); 
        
        $this->setAttribute('method', 'post'); 
        
        $this->add(array(
        		'name' => 'id',
        		'type' => 'Hidden',
        ));
        
        $this->add(array( 
            'name' => 'name', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'required' => 'required', 
            ),
        )); 
 
        $this->add(array( 
            'name' => 'amount', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'required' => 'required', 
            ), 
        )); 
        		
		$this->add(array( 
            'name' => 'account', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
            ), 
        ));
		
		$this->add(array( 
            'name' => 'closedate', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'required' => 'required',  
            ), 
        ));
 
		$this->add(array( 
            'name' => 'stage', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'required' => 'required',
            ), 
        ));
		
		
		$this->add(array( 
            'name' => 'probability', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
                'required' => 'required',
            ), 
        ));
		
		$this->add(array( 
            'name' => 'source', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
            ), 
        ));
		
		$this->add(array( 
            'name' => 'description', 
            //'type' => 'Zend\Form\Element\Text', 
            'attributes' => array( 
				'type'  => 'text',
            ), 
        ));
		$this->add(array(
				'name' => 'submit',
				'attributes' => array(
						'type'  => 'submit',
						'value' => 'Go',
						'id' => 'submitbutton',
				),
		));
 
		
    }
	
	
     
} 
?>